package com.jugheadzhou.auth.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;

import java.time.LocalDateTime;

/*
 *
 * gen by beetlsql3 2021-11-27
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name = "user")
public class User implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @AutoID
    private Integer id;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 部门ID
     */
    private Integer deptId;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 角色集合（用;分隔符）
     */
    private String roles;
    /**
     * 角色集合（用;分隔符）
     */
    private String avatar;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
